package com.finance.system.bean.pojo;

import com.finance.framework.lang.BaseObject;
import lombok.Data;


/**
 * Created by gly on 2017/4/1.
 */
@Data
public class Supplier extends BaseObject {

    /**
     * 供应商编码
     */
    private String code;

    /**
     * 供应商名称
     */
    private String name;

    /**
     * 供货商分组名
     */
    private String groupName;

    /**
     * 供货商分组ID
     */
    private Long  groupId;

    /**
     * 供货商分组名
     */
    private String groupCode;
    /**
     * 是否组包按重计算
     */
    private Integer isCombined;



    @Override
    public boolean equals(Object object) {
        if (object instanceof Supplier) {
            Supplier supplier = (Supplier) object;
            return supplier.getId().equals(super.getId());
        }
        return false;
    }

    @Override
    public int hashCode() {
        return this.getId().hashCode();
    }


}
